<!--
  @author heguanghua
  @since 2019/06/13 13:58
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'companyId', width:100, unresize:true, align:'center'}">公司ID</th>
        <!--规定“名称/标题”列置于第4列，通常居左显示，字数较少可以居中显示-->
        <th lay-data="{field:'name', width:300, unresize:true, align:'left'}">公司简称</th>
        <th lay-data="{field:'fullName', width:300, unresize:true, align:'left'}">公司注册名称</th>
        <th lay-data="{field:'provinceName', unresize:true, align:'left'}">所在城市区域</th>
        <th lay-data="{field:'serviceMinutes',unresize:true,width:300,align:'left', edit: 'text'}">服务时长(分)</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td th:text="${item.companyId}">companyId</td>
        <td th:text="${item.name}">name</td>
        <td th:text="${item.fullName}">fullName</td>
        <td th:text="${(item.provinceName==null?'':item.provinceName+'/')+(item.cityName==null?'':item.cityName+'/')+(item.countyName==null?'':item.countyName)}">
            provinceName
        </td>
        <td th:text="${item.serviceMinutes==0?'':item.serviceMinutes}" th:data="${item}">serviceMinutes</td>
    </tr>
    </tbody>
</table>

